package com.bndg.bndggame.bean;

import android.support.annotation.NonNull;

import java.util.List;

/**
 * Created by r on 18/4/10.
 */

public class RankBean {

    public List<RanklistBean> ranklist;

    public static class RanklistBean implements Comparable<RanklistBean> {
        /**
         * id : 1
         * name : a
         * time : 1
         * date : 2018-04-10
         * token : 12341234
         */

        public String id;
        public String name;
        public int time;
        public String date;
        public String token;

        @Override
        public int compareTo(@NonNull RanklistBean another) {
            //与前一个时间比较 如果当前时间大于前一个时间
            if(this.time > another.time) {
                return 1;
            }
            if(this.time < another.time) {
                return -1;
            }
            return 0;
        }


    }
}
